//
//  PQTabBar.m
//  PaiQuan
//
//  Created by Mac on 16/7/5.
//  Copyright © 2016年 huigu. All rights reserved.
//

#import "PQTabBar.h"

@interface PQTabBar ()

@property (nonatomic, weak) UIButton *plusBtn;

@end

@implementation PQTabBar

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = PQ_COLOR_BLACK;
        UIButton *plusBtn = [[UIButton alloc] init];
        [plusBtn setBackgroundImage:[UIImage imageNamed:@"03_normal"] forState:UIControlStateNormal];
        [plusBtn setBackgroundImage:[UIImage imageNamed:@"03_heighted"] forState:UIControlStateHighlighted];
        [plusBtn setImage:[UIImage imageNamed:@"03_normal"] forState:UIControlStateNormal];
        [plusBtn setImage:[UIImage imageNamed:@"03_heighted"] forState:UIControlStateHighlighted];
 
        [self addSubview:plusBtn];
        [plusBtn makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.bottom.equalTo(self.bottom).offset(-RATIO(10));
            make.width.height.equalTo(RATIO(128));
        }];
        self.plusBtn = plusBtn;
    }
    return self;
}



@end

